<?php
class Recaudacione extends AppModel {
	var $name = 'Recaudacione';
    var $displayField = 'ano';
    var $hasMany = array('Caja' => array('className' => 'Caja','foreignKey' => 'user_id', 'limit' => '5'));
	var $validate = array('meta' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				'message' => 'Campo requerido',
				'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'ano' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				'message' => 'Digite un año',
				'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
}
?>